<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="x-ua-compatible" content="ie=7" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<base href="<%=basePath%>"/>
<title>桂林中昊力创机电设备有限公司</title>
<link href="css/stly.css" rel="stylesheet" type="text/css" />
</head>
<body>

	<c:catch>
		<tiles:useAttribute name="body" id="body" />
	</c:catch>
	
	<c:choose>
		<c:when test="${body != null }">
			<tiles:insertAttribute name="body" />
		</c:when>
		<c:otherwise>
			<div class="top">
				<div class="huany">欢迎您，进入桂林中昊力创机电设备有限公司网站！</div>
				<div class="top_ana">
					<ul>
						<li><a href="/en/${uri }" class="zyw">English</a></li>
						<li><a href="/${uri }" class="zyw">中文</a></li>
					</ul>
				</div>
			</div>

			<div class=" mian_back">
				<!-- 头部开始 -->
				<tiles:insertAttribute name="top" />
				<!-- 头部结束 -->

				<div class="main_c_bg">
					<div class="same_banner">
						<div id="cp"></div>
						<tiles:useAttribute name="background" />
						<img src="${background }" id="background_image"/>
						<tiles:insertAttribute name="menu" />
					</div>

					<div class="cont_back">
						<!-- 左边开始 -->
						<div class="left">
							<tiles:useAttribute id="left" name="left"
								classname="java.util.List" />
							<c:forEach items="${left }" var="item">
								<tiles:insertAttribute value="${item }" />
							</c:forEach>
						</div>
						<!-- 左边结束 -->

						<!-- 右边开始 -->
						<tiles:insertAttribute name="right" />
						<!-- 右边结束 -->
					</div>
					<div class="cle"></div>
				</div>
				<div class="main_c_btoom">
					<img src="images/bg_c.jpg" />
				</div>
			</div>
			<!-- 底部开始 -->
			<tiles:insertAttribute name="button" />
			<!-- 底部结束 -->
		</c:otherwise>
	</c:choose>
<!-- scripts -->	
<script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/js/jquery.flash.js"></script>	
<script type="text/javascript" src="/js/glzh.js"></script>
</body>
</html>
